using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class CarEventsExtend
{
		public static ResponseCarEventsDto ToResponseDto(this CarEvents entity)
{			return new ResponseCarEventsDto
			{
				createAt = entity.CeCreateAt,
				description = entity.CeDescription,
				endTime = entity.CeEndTime,
				eventType = entity.CeEventType,
				location = entity.CeLocation,
				publisher = entity.CePublisher,
				count = entity.CeCount,
				startTime = entity.CeStartTime,
				status = entity.CeStatus,
				title = entity.CeTitle,
				updateAt = entity.CeUpdateAt,
			};
		}
	}
}
